Merged
Conversation
bgavrilMS
reviewed
Feb 13, 2026
src/Microsoft.Identity.Web.TokenAcquisition/TokenAcquisition.cs
Outdated
Show resolved
Hide resolved
bgavrilMS
approved these changes
Feb 13, 2026
bgavrilMS
approved these changes
Feb 13, 2026
4gust
approved these changes
Feb 13, 2026
bgavrilMS
reviewed
Feb 14, 2026
bgavrilMS
approved these changes
Feb 17, 2026
This was referenced Mar 1, 2026
deps: Bump Microsoft.Identity.Web from 4.3.0 to 4.4.0
microsoft/dragon-copilot-extension-samples#173
Merged
Closed
This was referenced Mar 13, 2026
Closed
Closed
Closed
This was referenced Mar 20, 2026
Closed
Open
Open
Open
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adding OBO event to init OBO apis
This pull request introduces new extensibility points to the On-Behalf-Of (OBO) authentication flow in Microsoft.Identity.Web, allowing developers to hook into the initialization phase of the OBO process. The changes are applied consistently across all supported target frameworks and involve both new delegate types and methods for synchronous and asynchronous event handling.
The most important changes are:
New OBO Initialization Extension Points:
BeforeOnBehalfOfInitializedandBeforeOnBehalfOfInitializedAsync, along with corresponding properties onTokenAcquisitionExtensionOptions(OnBeforeOnBehalfOfInitialized,OnBeforeOnBehalfOfInitializedAsync). These allow custom logic to be executed before the OBO flow is fully initialized.Invokemethods for both delegates, supporting both synchronous and asynchronous event handling during OBO initialization.InvokeOnBeforeOnBehalfOfInitializedAsynctoTokenAcquisitionExtensionOptions, enabling asynchronous invocation of the new initialization event.Integration with OBO Flow:
TokenAcquisition.csto invoke the new OBO initialization event (InvokeOnBeforeOnBehalfOfInitializedAsync) before proceeding with the rest of the OBO authentication process, allowing the token or user information to be modified at this early stage.Cross-Framework Consistency:
Minor Codebase Maintenance:
using System;statement inTokenAcquisitionExtensionOptions.csto support the new delegate types.